// @ts-ignore
/* eslint-disable */
import { request } from "../../utils/request";

/** 登录接口 POST */
export async function loginWxampForWechatCallback(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<LoginData.LoginVo>>('/login/loginWxampForWechatCallback', {
    method: 'POST',
    data: options || {},
  });
}

/** 登出接口 POST*/
export async function logout(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<null>>('/login/logout', {
    method: 'POST',
    data: options || {},
  });
}

/** 绑定账号 POST  */
export async function loginWxampForWechatBindingAccount(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<LoginData.LoginVo>>(
    '/login/loginWxampForWechatBindingAccount',
    {
      method: 'POST',
      data: options || {},
    }
  );
}

/** 获取当前的用户 POST  */
export async function currentAccount(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<AccountData.CurrentAccountVo>>('/login/current', {
    method: 'POST',
    data: options || {},
  });
}

/** 获取组织架构 POST  */
export async function bindAccountOrganization(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<AccountData.CurrentAccountVo>>('/login/bindAccountOrganization', {
    method: 'POST',
    data: options || {},
  });
}

/** 根据 手机号 获取绑定状态 POST  */
export async function bindAccountQueryByPhone(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<LoginData.BindAccountQueryByPhoneVo>>('/login/bindAccountQueryByPhone', {
    method: 'POST',
    data: options || {},
  });
}